package com.wxsoft.business.sys.pojo;

import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Email;
import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;

public class SysUser {
//	private int id;
	private String unit_id;
	private String user_id;
	private String password;
	private String num;
	private String user_name;
	private String sex;
	private String identity_id;
//	@JSONField (format="yyyy-MM-dd HH:mm:ss") 
	@JSONField (format="yyyy-MM-dd") 
	private String birthday;
	@Pattern(regexp="^((13[0-9])|(15[^4,\\D])|(18[0,3-9]))\\d{8}$", message="手机号格式不正确")
	private String phone;

	@Email(message="{validation.common.format.error}")
	private String email;
//	private String role_code;
	private String department;
	private String status;

//	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	@JSONField (format="yyyy-MM-dd")  
//	 @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date start_date;

	@JSONField (format="yyyy-MM-dd") 
	@DateTimeFormat(pattern = "yyyy-MM-dd" )
	private Date end_date;
	private String handle;

//	@JSONField (format="yyyy-MM-dd HH:mm:ss") 
	private Date handle_date;

//	public int getId() {
//		return id;
//	}
//	public void setId(int id) {
//		this.id = id;
//	}
	public String getUnit_id() {
		return unit_id;
	}
	public void setUnit_id(String unit_id) {
		this.unit_id = unit_id;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNum() {
		return num;
	}
	public void setNum(String num) {
		this.num = num;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getIdentity_id() {
		return identity_id;
	}
	public void setIdentity_id(String identity_id) {
		this.identity_id = identity_id;
	}
//	@JSONField (format="yyyy-MM-dd") 
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
//	public String getRole_code() {
//		return role_code;
//	}
//	public void setRole_code(String role_code) {
//		this.role_code = role_code;
//	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
//	@JsonSerialize(using=CustomDateSerializer.class)
	public Date getStart_date() {
		return start_date;
	}
	public void setStart_date(Date start_date) {
		this.start_date = start_date;
	}
//	@JsonSerialize(using=CustomDateSerializer.class)
	public Date getEnd_date() {
		return end_date;
	}
	public void setEnd_date(Date end_date) {
		this.end_date = end_date;
	}
	public String getHandle() {
		return handle;
	}
	public void setHandle(String handle) {
		this.handle = handle;
	}
//	@JsonSerialize(using=CustomDateTimeSerializer.class)
	@JSONField (format="yyyy-MM-dd HH:mm:ss") 
	public Date getHandle_date() {
		return handle_date;
	}
	public void setHandle_date(Date handle_date) {
		this.handle_date = handle_date;
	}

	
}
